Null Check Analysis

نویسنده

  • Haidar Osman
چکیده

Null dereferencing is one of the most frequent bugs in Java systems causing programs to crash due to the uncaught NullPointerException. Developers often fix this bug by introducing a guard (i.e., null check) on the potentially-null objects before using them. In this paper we investigate the null checks in 717 open-source Java systems to understand when and why developers introduce null checks. We find that 35% of the if -statements are null checks. A deeper investigation shows that 71% of the checked-for-null objects are returned from method calls. This indicates that null checks have a serious impact on performance and that developers introduce null checks when they use methods that return null.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Null Case and the Distribution of PRO

Chomsky and Lasnik (1993) argue convincingly that PRO has null Case, checked by nonfinite T, and suggest that this may explain PRO’s narrow distribution. However, their analysis falls short of reaching this goal. Here, I refine the theory of null Case so as to fully account for the distribution of empty and lexical subjects of nonfinite clauses, concluding that this minimalist analysis is more ...

متن کامل

Spectral-Null Codes and Null Spaces of Hadamard Submatrices

Codes C(m, r) of length 2m over {1,−1} are defined as null spaces of certain submatrices of Hadamard matrices. It is shown that the codewords of C(m, r) all have an rth order spectral null at zero frequency. Establishing the connection between C(m, r) and the parity-check matrix of Reed-Muller codes, the minimum distance of C(m, r) is obtained along with upper bounds on the redundancy of C(m, r...

متن کامل

S 1 . Additional Methodological Details and Sensitivity Analysis

The Phillips-Perron unit root test was used to test for unit roots, using level or trend nonstationarity as the null [1]. (A unit root tests whether a variable y evolves as a random walk, i.e., with the dynamic relation yt = yt-1 + constant + deterministic trend + errort.) The KPSS test [1,2], which uses level or trend stationarity as the null, was used to confirm the results of the Phillips-Pe...

متن کامل

A tool for modeling form type check constraints and complex functionalities of business applications

IIS*Case is a software tool that provides information system modeling and prototypes generation. At the level of platform independent model specifications, IIS*Case provides conceptual modeling of database schemas that include specifications of various database constraints, such as domain, not null, key and unique constraints, as well as various kinds of inclusion dependencies. It also provides...

متن کامل

Null Genotype of GSTT1 Contributes to Colorectal Cancer Risk in Asians

Background/Aims: Studies of associations between genetic polymorphism of glutathione S-transferase T1 (GSTT1) and risk of colorectal cancer (CRC) in Asian populations have reported controversial results. Thus, a meta-analysis was performed to clarify the effects of GSTT1 polymorphism on the risk of developing colorectal cancer. Methods: A literature search of PubMed and EMBASE up to June 7, 201...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015